package tablet.client.workspace;

import java.util.concurrent.ExecutionException;

import tablet.client.buttons.SearchButtonListener;
import tablet.client.workspace.ClientTabletteActivity;

import tablet.client.workspace.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Toast;

public class ClientTabletteActivity extends Activity{
    /** Called when the activity is first created. */
	
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        SearchButtonListener sbListener = new SearchButtonListener(this);
        
        Button buttonSearch = (Button) findViewById(R.id.buttonSearch);
        buttonSearch.setOnClickListener(sbListener);
			

    }
       
    public void setUp() {
    	Toast.makeText(ClientTabletteActivity.this, "Starting search...", Toast.LENGTH_LONG).show();
      	  	
	  	Intent intentListTvs = new Intent(ClientTabletteActivity.this, ListTvs.class );
	  	startActivity(intentListTvs);
	  	
//	  	jmdns.removeServiceListener(SERVICE_TYPE, mdnsServiceListener);
//	  	
//	  	try{
//	  		jmdns.close();
//	  	}catch(IOException e){
//	  		System.out.println("Exception closing!");
//	  	}
    }
    
        
}